package com.example.sup.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName environment_settings
 */
@TableName(value ="environment_settings")
@Data
public class EnvironmentSettings implements Serializable {
    /**
     * 仓室环境设置
     */
    @TableId(type = IdType.AUTO)
    private Integer environmentId;

    /**
     * 
     */
    private String miniTemper;

    /**
     * 最高温度
     */
    private String maxTemper;

    /**
     * 最大流明度
     */
    private Integer maxLumen;

    /**
     * 最小流明度
     */
    private Integer miniLumen;

    /**
     * 最大氨气浓度
     */
    private Integer maxAmmonia;

    /**
     * 最小氨气浓度
     */
    private Integer miniAmmonia;

    /**
     * 最大温湿度
     */
    private Integer maxTemperHumidity;

    /**
     * 最小温湿度
     */
    private Integer miniTemperHumidity;

    /**
     * 
     */
    private String tvOffTime;

    /**
     * 
     */
    private String tvOnTime;

    /**
     * 制热温度
     */
    private Integer heatAcTemper;

    /**
     * 制冷温度
     */
    private Integer coldAcTemper;

    /**
     * 预留字段1
     */
    private Integer startState;

    /**
     * 预留字段2
     */
    private String reservedFields2;

    /**
     * 
     */
    private Date createTime;

    /**
     * 
     */
    private String createBy;

    /**
     * 
     */
    private Date updateTime;

    /**
     * 
     */
    private String updateBy;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        EnvironmentSettings other = (EnvironmentSettings) that;
        return (this.getEnvironmentId() == null ? other.getEnvironmentId() == null : this.getEnvironmentId().equals(other.getEnvironmentId()))
            && (this.getMiniTemper() == null ? other.getMiniTemper() == null : this.getMiniTemper().equals(other.getMiniTemper()))
            && (this.getMaxTemper() == null ? other.getMaxTemper() == null : this.getMaxTemper().equals(other.getMaxTemper()))
            && (this.getMaxLumen() == null ? other.getMaxLumen() == null : this.getMaxLumen().equals(other.getMaxLumen()))
            && (this.getMiniLumen() == null ? other.getMiniLumen() == null : this.getMiniLumen().equals(other.getMiniLumen()))
            && (this.getMaxAmmonia() == null ? other.getMaxAmmonia() == null : this.getMaxAmmonia().equals(other.getMaxAmmonia()))
            && (this.getMiniAmmonia() == null ? other.getMiniAmmonia() == null : this.getMiniAmmonia().equals(other.getMiniAmmonia()))
            && (this.getMaxTemperHumidity() == null ? other.getMaxTemperHumidity() == null : this.getMaxTemperHumidity().equals(other.getMaxTemperHumidity()))
            && (this.getMiniTemperHumidity() == null ? other.getMiniTemperHumidity() == null : this.getMiniTemperHumidity().equals(other.getMiniTemperHumidity()))
            && (this.getTvOffTime() == null ? other.getTvOffTime() == null : this.getTvOffTime().equals(other.getTvOffTime()))
            && (this.getTvOnTime() == null ? other.getTvOnTime() == null : this.getTvOnTime().equals(other.getTvOnTime()))
            && (this.getHeatAcTemper() == null ? other.getHeatAcTemper() == null : this.getHeatAcTemper().equals(other.getHeatAcTemper()))
            && (this.getColdAcTemper() == null ? other.getColdAcTemper() == null : this.getColdAcTemper().equals(other.getColdAcTemper()))
            && (this.getStartState() == null ? other.getStartState() == null : this.getStartState().equals(other.getStartState()))
            && (this.getReservedFields2() == null ? other.getReservedFields2() == null : this.getReservedFields2().equals(other.getReservedFields2()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getUpdateBy() == null ? other.getUpdateBy() == null : this.getUpdateBy().equals(other.getUpdateBy()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getEnvironmentId() == null) ? 0 : getEnvironmentId().hashCode());
        result = prime * result + ((getMiniTemper() == null) ? 0 : getMiniTemper().hashCode());
        result = prime * result + ((getMaxTemper() == null) ? 0 : getMaxTemper().hashCode());
        result = prime * result + ((getMaxLumen() == null) ? 0 : getMaxLumen().hashCode());
        result = prime * result + ((getMiniLumen() == null) ? 0 : getMiniLumen().hashCode());
        result = prime * result + ((getMaxAmmonia() == null) ? 0 : getMaxAmmonia().hashCode());
        result = prime * result + ((getMiniAmmonia() == null) ? 0 : getMiniAmmonia().hashCode());
        result = prime * result + ((getMaxTemperHumidity() == null) ? 0 : getMaxTemperHumidity().hashCode());
        result = prime * result + ((getMiniTemperHumidity() == null) ? 0 : getMiniTemperHumidity().hashCode());
        result = prime * result + ((getTvOffTime() == null) ? 0 : getTvOffTime().hashCode());
        result = prime * result + ((getTvOnTime() == null) ? 0 : getTvOnTime().hashCode());
        result = prime * result + ((getHeatAcTemper() == null) ? 0 : getHeatAcTemper().hashCode());
        result = prime * result + ((getColdAcTemper() == null) ? 0 : getColdAcTemper().hashCode());
        result = prime * result + ((getStartState() == null) ? 0 : getStartState().hashCode());
        result = prime * result + ((getReservedFields2() == null) ? 0 : getReservedFields2().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getUpdateBy() == null) ? 0 : getUpdateBy().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", environmentId=").append(environmentId);
        sb.append(", miniTemper=").append(miniTemper);
        sb.append(", maxTemper=").append(maxTemper);
        sb.append(", maxLumen=").append(maxLumen);
        sb.append(", miniLumen=").append(miniLumen);
        sb.append(", maxAmmonia=").append(maxAmmonia);
        sb.append(", miniAmmonia=").append(miniAmmonia);
        sb.append(", maxTemperHumidity=").append(maxTemperHumidity);
        sb.append(", miniTemperHumidity=").append(miniTemperHumidity);
        sb.append(", tvOffTime=").append(tvOffTime);
        sb.append(", tvOnTime=").append(tvOnTime);
        sb.append(", heatAcTemper=").append(heatAcTemper);
        sb.append(", coldAcTemper=").append(coldAcTemper);
        sb.append(", startState=").append(startState);
        sb.append(", reservedFields2=").append(reservedFields2);
        sb.append(", createTime=").append(createTime);
        sb.append(", createBy=").append(createBy);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", updateBy=").append(updateBy);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}